#ifndef STRINGINPUTCONTROL_H_
#define STRINGINPUTCONTROL_H_

#include "Control.h"

/**
 * \class StringInputControl
 * \brief A Control-derived class which the server renders as an input field on the web page
 *
 * The string located in the input field is saved in this classes data member \a valueString.
 * No further manipulation is done to the string.
 */
class StringInputControl: public Control {
public:
	StringInputControl(std::string controlDescription);
	virtual ~StringInputControl();

	/**
	 * \brief a redefinition of Element::getType() to return the correct value
	 * \return STRINGCONTROL
	 */
	int getType();
	void setValueString(std::string newValueString);
	std::string getValueString();

	void setValue(void* newValue);

private:
	std::string valueString;
};

#endif /* STRINGINPUTCONTROL_H_ */
